<?php

class application extends Zend_Controller_Action {

    public $_development = 'false';
    public $_analytics = '';
    public $_style = '';
    public $_auth;
    public $_parent = 0;
    protected $_domainid = 0;
    protected $_styl = '';
    protected $_domain_name = '';
    public $_user = 0;
    public $_dbset;

    public function init() {
        $this->_dbset = array();
        $this->_dbset['host'] = 'localhost:3307';
        $this->_dbset['user'] = 'elogo';
        $this->_dbset['pass'] = '8ZWiIf0SxY';
        $this->_dbset['name'] = 'elogo_www-db';
        $this->view->dbset = $this->_dbset;
        
        

        $domenka = $_SERVER['HTTP_HOST'];
        if (preg_match('/^www\.(.*)/i', $domenka, $matches)) {
            $domenka = $matches[1];
        }
        
        $this->_helper->layout->setLayout('admin');
        
        $auth = Zend_Auth::getInstance();
        if ($auth->hasIdentity()) {
            $this->view->identity = $auth->getIdentity();
            $this->_auth = $auth->getIdentity();
        }

        
    }

}
